<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>


<html:form action="/staticworksheet" >
   
   <table border="0" align="center" width="75%" bordercolor="green">

       <tr>
           <td>

			             	 	<table width="100%" border="0">
			             	 		<tr>
			             	 			<td width="15%" class="info_label" align="right" nowrap>Chosen  <span>subject: </span></td>
			             	 			<td width="3">&nbsp;</td>
			             	 			<td  width="15%" class="info_display" nowrap>
			             	 				<bean:write name="baseform" property="subject" />
			             	 			</td>
			             	 			<td  width="15%" class="info_label" align="right" nowrap>Chosen  <span>topic: </span></td>
			             	 			<td  width="15%" class="info_display" nowrap>
			             	 				<bean:write name="baseform" property="topic" />
			             	 			</td>
			             	 			<td width="37%">&nbsp;</td>
			             	 		</tr>
			             	 		<tr>
			             	 			<td class="heading_three" colspan="6">&nbsp;</td>
			             	 		</tr>
			             	 	</table>           		
           		
           		
           		 		           
           </td>
       </tr> 
               
       <nested:equal property="showBackLink" value="true">
       <tr>
           <td align="right">
           		Click <a href="#" onClick="goBack()">here</a> to choose different operation or previous screen.
           </td>
       </tr> 
       </nested:equal> 
	       

<%--        <tr>
           <td class="description-small">
           		<ul>
           			<li>Displayed worksheets are in pdf &nbsp;<img align="top" src="<%=request.getContextPath()%>/image/acrobaticon.gif" border="0"/> format.</li>
           		</ul>
           </td>
       </tr>  --%> 
            
      
	       <tr>
	           <td>
	           		<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#e7e7e7">
						<tr>
							<td colspan="3">&nbsp;</td>
						</tr>	
						<tr>
							<td>&nbsp;</td>
							<td class="pmtitle2">Worksheet name</td>
							<td>&nbsp;</td>
						</tr>									
						<tr>
							<td colspan="3"><hr></td>
						</tr>
	           			<nested:iterate property="worksheets">
	           			<tr>
	           				<td>
	           					<img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0">
	           				</td>
	           				<td class="description-small">
	           					<nested:write property="description"/>
	           				</td>           			
	           				<td>
	   	   						<nested:define id="printkey" property="encryptedPrintKey"/>
	   	   						<%
	   	   							String printurl = request.getContextPath() + "/staticworksheet.do?action=swsdisplay&key=" + printkey;
	   	   						%>
	   							<a href="#" onclick="showPdf('<%=printurl%>'); return false;">
	   								<img src="<%=request.getContextPath()%>/image/printer.jpg" border="0"/>
	   							</a>           				
	           				</td>
	           			</tr>
	           			</nested:iterate>
	           			<nested:notEmpty property="dynamicPdfLink">
	           			<tr>
	           				<td>
	           					<img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0">
	           				</td>           			
	           				<td class="description-small">
	           					<nested:write property="dynamicPdfLinkName"/>
	           				</td>           			
	           				<td>
		      					<nested:define id="pdfLink" property="dynamicPdfLink" />
								<%
								String pdfurl = request.getContextPath() + "/" + pdfLink;
								%>
								<a href="<%=pdfurl%>" >
									<img src="<%=request.getContextPath()%>/image/printer.jpg" border="0"/>
								</a>           				
	           				</td>           			
	           			</tr>
	           			</nested:notEmpty>   
	           			<tr>
	           				<td colspan="3" class="description-small"><hr></td>
	           			</tr>           			
	           			<tr>
	           				<td colspan="3" align="right">
	           					All worksheets are in pdf &nbsp;<img align="top" src="<%=request.getContextPath()%>/image/acrobaticon.gif" border="0"/> format.
	           				</td>
	           			</tr>           			        			
	           	   	</table> 
	           </td>
	       </tr> 

   </table>  
   
</html:form>
